﻿using PetAdoptApi.Entity;
using PetAdoptionShared.Dto;
using System.Linq.Expressions;

namespace PetAdoptApi.Extensions;

public static class Selectors
{
    public static Expression<Func<Pet,PetListDto>> PetToPetListDto => p=>new PetListDto(p.Id,p.Name,p.Image,p.Breed,p.Price);
  
}
